package cn.edu.lingnan.test;

public class HelloSpring {
    public HelloSpring(){
        System.out.println("构造方法被调用");
    }

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }//提供给Spring方法注入
    public void show(){
        System.out.println("helloSpring：  "+name);
    }
}
